<%--
  Created by IntelliJ IDEA.
  User: cos
  Date: 2021/11/18
  Time: 17:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="/emp/updateEmp" method="post">
    <input type="hidden" value="${emp.eno}" name="eno">
    员工名<input type="text" name="ename" value="${emp.ename}"><br>
    员工密码<input type="password" name="pwd" value="${emp.pwd}"><br>
    <c:if test="${emp.esex=='男'}">
    员工性别<input type="radio" name="esex" value="男" checked>男
    <input type="radio" name="esex" value="女">女<br>
    </c:if>
    <c:if test="${emp.esex=='女'}">
        员工性别<input type="radio" name="esex" value="男" >男
        <input type="radio" name="esex" value="女" checked>女<br>
    </c:if>
    员工工资 <input type="text" name="salary" value="${emp.salary}"><br>
    员工部门编号<input type="text" name="dno" value="${emp.dno}"><br>

    员工出生日期<input type="date" name="bornDate" value="<fm:formatDate value='${emp.bornDate}' pattern='yyyy-MM-dd'/>"><br>
    员工手机号<input type="text" name="phone" value="${emp.phone}"><br>
    <input type="submit">
</form>
</body>
</html>
